#include <stdio.h>
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

int main()
{
    //close(1);
    //int fd = open("log.txt",O_CREAT | O_TRUNC | O_WRONLY, 0666);
    //printf("%s","hello quitesix\n");
    
     
    int fd = open("log.txt",O_CREAT | O_TRUNC | O_WRONLY, 0666);
    dup2(fd,1);
    printf("test dunp2\n");
    return 0;
}
